package cn.tedu.delivery.controller;

import cn.tedu.delivery.mapper.DeliveryMapper;
import cn.tedu.delivery.pojo.entity.Delivery;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@Slf4j
@Api(tags = "信息模块")
@RestController
@RequestMapping("/delivery/")
public class DeliveryController {

    @Autowired
    private DeliveryMapper deliveryMapper;

    @ApiOperation(value = "查询骑手")
    @GetMapping("page")
    public List<Delivery>page(){
        return deliveryMapper.PageListDelivery();
    }
}
